package base

import (
	"github.com/gin-gonic/gin"
	"net/http"
)

func init() {
	r := gin.Default()
	r.GET("/", func(context *gin.Context) {
		context.String(http.StatusOK, "hello")
	})
	r.POST("/xxxpost", getting)
	r.PUT("/xxxput", func(context *gin.Context) {
		context.String(http.StatusOK, "Putting")
	})

	err := r.Run(":8000")
	if err != nil {
		println(err)
		return
	}
}

func getting(context *gin.Context) {
	context.String(http.StatusOK, "getting")
}
